package com.example.flow.biz.impl;

import java.util.Date;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.example.flow.biz.FlowApproveApplyDetailBiz;
import com.example.flow.dao.mapper.FlowApproveApplyDetailMapper;
import com.example.flow.dao.model.FlowApproveApplyDetail;

/**
 * @author safe
 * @date 2021/1/31
 */
@Service
public class FlowApproveApplyDetailBizImpl implements FlowApproveApplyDetailBiz {
    @Autowired
    private FlowApproveApplyDetailMapper approveApplyDetailMapper;

    @Override
    public boolean saveApproveApplyDetail(FlowApproveApplyDetail detail) {
        detail.setCreateTime(new Date());
        return approveApplyDetailMapper.insert(detail) == 1;
    }
}
